﻿using Odn.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Odn.Repository
{
    public interface IRepository
    {
        TEntity Insert<TEntity>(TEntity entity) where TEntity : IEntity;

        TEntity Update<TEntity>(TEntity entity) where TEntity : IEntity;

        TEntity Delete<TEntity>(TEntity entity) where TEntity : IEntity;

        TEntity Get<TEntity, TKey>(TKey key) where TEntity : IEntity;
    }
}
